import { Item } from "../data"

// v1/data/getDataList
export const getList = () :Promise<{code: number, data: Item[]}> => {

  const d = {
    "code": 0,
    "data": [
      {
        "id": 129,
        "category_id": 1,
        "name": "永远的女神#991",
        "tag": true,
        "atlas": true,
        "isCast": true,
        "isExchange": true,
        "img": "pic1.png"
      },
      {
        "id": 130,
        "category_id": 1,
        "name": "永远的女神#992",
        "tag": true,
        "atlas": false,
        "isCast": true,
        "isExchange": false,
        "img": "pic1.png"
      },
      {
        "id": 131,
        "category_id": 1,
        "name": "永远的女神#999",
        "tag": true,
        "atlas": false,
        "isCast": false,
        "isExchange": false,
        "img": "pic1.png"
      },
      {
        "id": 132,
        "category_id": 2,
        "name": "永远的女神#999",
        "tag": true,
        "atlas": true,
        "isCast": true,
        "isExchange": true,
        "img": "pic1.png"
      },
      {
        "id": 133,
        "category_id": 2,
        "name": "永远的女神#999",
        "tag": true,
        "atlas": false,
        "isCast": true,
        "isExchange": false,
        "img": "pic1.png"
      },
      {
        "id": 134,
        "category_id": 2,
        "name": "永远的女神#999",
        "tag": true,
        "atlas": false,
        "isCast": false,
        "isExchange": false,
        "img": "pic1.png"
      }               
    ]}

  return new Promise((resolve, reject)=>{
    setTimeout(()=>{
      resolve(d)
    }, 1000)
  })
}